package com.lxy.fun2;

import java.util.function.Predicate;

public class PredicateTest {

    public static void main(String[] args) {
        boolean aaaa = test("aaaa", s -> s.length() > 5);
        System.out.println(aaaa);
    }

    //判断接口
    public static boolean test(String str, Predicate<String> pred){
        return pred.test(str);
    }
}
